<?php
// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.view');

class MeuploadViewMeupload extends JView
{
    function display($tpl = null)
    {
        $dir    = JPATH_SITE.'/images/stories';
        $dirlist = Folderlist::showfolder($dir);
        $numfiles = Folderlist::numfile($dir,$dirlist);

        $this->assignRef('numfile',	$numfiles);
        $this->assignRef('dirlist',	$dirlist);
        
        parent::display($tpl);
    }
}